
public class R {

	public static void main(String[] args) {
		for (int i = 1998; i <=2008; i++) {
			int a;
			a=i%4;
			if(a==0) {
				System.out.println(i);
			}
		}

	}

}
